#!/usr/bin/env python
# -*- coding: utf-8 -*-

'''
配置文件
'''

from lib.webconf import WEBCONF

CONF = {}

# Web框架相关
CONF['encoding'] = WEBCONF['encoding']

# Session相关
CONF['expir_sec'] = 3600  # Session过期时间，单位：秒
CONF['sn_name'] = 'sn'  # Session存在Cookie的名称

# 逻辑业务相关
CONF['passwd_key'] = '70e8b14fb1a348d1b2dbf91c8f0866cb'  # 密码的hash尾串
CONF['page_size'] = 5  # 每页显示商品默认数
CONF['num_max'] = 10  # 每页显示商品最大数
CONF['image_notfound'] = 'static/image/notfound.jpg'  # 找不到图时显示
CONF['image_notfound_format'] = 'jpg'  # 上述图片的格式（后缀）

# 支付接口相关
CONF['service_sn'] = 'be4076a6f5a546098dfd69db6d212bd9'
CONF['service_key'] = '3abbabbeaf434bc2af7578300a2c59ac'
CONF['pay_domain'] = 'http://payment-gateway-zgl.webapp.163.com/'
CONF['pay_domain_ssl'] = 'https://payment-gateway-zgl.webapp.163.com/'
CONF['pay_create_url'] = CONF['pay_domain'] + 'create/'
CONF['pay_check_url'] = CONF['pay_domain'] + 'check/'
CONF['pay_user_url'] = CONF['pay_domain_ssl'] + 'pay/'
CONF['pub_key_file'] = 'lib/pub_key.pem'
CONF['pri_key_file'] = 'lib/pri_key.pem'
